/**
 * 
 */
package com.m7012e.a_remote.android_remote.network.protocol.echoProtocol.internEvents;

import com.m7012e.a_remote.communication.Daemon;

/**
 * @author leoj
 *
 */
public class FreeDaemonFoundEvent extends DaemonFoundEvent {
	public final Daemon daemon;
	/**
	 * @param available
	 * @param distance
	 */
	public FreeDaemonFoundEvent(int distance, String address, int port) {
		super(true, distance);
		this.daemon = new Daemon(address, port);
	}
	/* (non-Javadoc)
	 * @see com.m7012e.a_remote.android_remote.network.protocol.internEvents.DaemonFoundEvent#toString()
	 */
	@Override
	public String toString() {
		return "free daemon : @"+daemon.address+":"+daemon.port+" distance->"+distance;
	}
	
	
}
